package com.copm.ifm.servers.sys.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 项目对外授权前端接收类
 *
 * @author tp
 */
@Data
public class SysOutProjectDTO implements Serializable {

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("租户id")
    private Long tenantId;

    @ApiModelProperty("设置项目告警天数，单位默认是天")
    private Integer overdueTime;

    @ApiModelProperty("业务类型")
    private String businessTypes;

    @ApiModelProperty("是否对外授权[0未授权，1已授权]")
    private Boolean isExternalAuth;

    @ApiModelProperty("对外授权的供应商（tenantId的type是3的租户）")
    private String supplier;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("授权开始时间")
    @NotNull
    private Date authStartTime;

    @TableField(fill = FieldFill.INSERT)
    @NotNull
    @ApiModelProperty("授权结束时间")
    private Date authEndTime;

}
